﻿using PublicClass;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.Organization.Domian.Model
{
    /// <summary>
    /// 羊场设置
    /// </summary>
    [Table("SheepFarmSetting")]
    public class SheepFarmSetting: AuditFields
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        public int SheepFarmId { get; set; }

        /// <summary>
        /// 羊场编码
        /// </summary>
        [StringLength(50)]
        public string? FarmNumber { get; set; }

        /// <summary>
        /// 羊场全程
        /// </summary>
        [StringLength(50)]
        public string? FarmName { get; set; }

        /// <summary>
        /// 羊场简称
        /// </summary>
        [StringLength(50)]
        public string? FarmAbbreviation { get; set; }

        /// <summary>
        /// 羊场规模
        /// </summary>
        [StringLength(50)]
        public string? FarmScale { get; set; }

        /// <summary>
        /// 建账日期
        /// </summary>
        public DateTime AccountsDate { get; set; }

        /// <summary>
        /// 管负责人
        /// </summary>
        [StringLength(50)]
        public string? Principal { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        [StringLength(500)]
        public string? DetailedAddress { get; set; }
        
        /// <summary>
        /// 详细地址
        /// </summary>
        [StringLength(500)]
        public string? SheepAddress { get; set; }

        /// <summary>
        /// 管理部门
        /// </summary>
        [StringLength(50)]
        public string? Department { get; set; }

        /// <summary>
        /// 状态（是否启用）
        /// </summary>
        public bool FarmState { get; set; }
    }
}
